This replication archive includes the data and Stata dofile needed for replicating the analyses reported in "Is there a ‘Youthquake’? The Structure of Party Competition and Age Differences in Voting", by Ruth Dassonneville and Ian McAllister.

For replicating, download all the files on your local drive. Then, save them in a single folder "youth quake-replication", which should include three subfolders: 
1. "data"
2. "dofiles"
3. "tables and figures" 

In the "data" subfolder, store all the datafiles (.dta) needed for the replication. In the "dofile" subfolder, save the three dofiles (.do) in the replication archive. Also add an empty  "tables and figures" subfolder where the table and figures that are produced by running the main dofile are stored. 

Once you have downloaded the data and have set up the structure of the replication archive, modify the working directory lines in the "youthquake-replication.do" file to match the location of the folder on your local computer.

The "data" subfolder should includes the following datasets:
(1) gmp.dta: the main WPID dataset that is used in Study 1. The data have been collected by Gethin, Martinez-Toledano and Piketty, and can be downloaded here https://wpid.world/resources/
(2) cmp_positions.dta: an additional macro dataset that is merged with the individual level data in Study 1. The dataset includes country-year level estimates of the economic and cultural positions of parties. This dataset is constructed using the MARPOR party estimates (version MPDS2024a).
(3) gallagher-indices-formerge.dta: an additional macro dataset that is merged with the individual level data in Study 1. The dataset includes Gallagher's election indices, as available here https://www.tcd.ie/Political_Science/about/people/michael_gallagher/ElSystems/Docts/ElectionIndices.pdf
(4) ees-votersurvey-2019-coded.dta: the main EES dataset that is used in Study 2. This dataset is a coded version of the 2019 EES voter survey by Schmitt et al., which is available here https://search.gesis.org/research_data/ZA7581 and is already matched with the 2019 Chapel Hill Expert Survey data by Jolly et al. which are available here https://www.chesdata.eu/2019-chapel-hill-expert-survey
(5) BES2024_W26_Panel_v26.0.dta: the BES dataset that is used in Study 3. The data have been collected by Fieldhouse et al. and are available here https://www.britishelectionstudy.com/data-object/british-election-study-combined-wave-1-26-internet-panel/
(6) denmark_2007.dta: the data from the 2007 Danish National Election Study, used in Study 3. The data can be downloaded here https://en.rigsarkivet.dk/guide/the-danish-national-election-study/
(7) denmark_2015.dta: the data from the 2015 Danish National Election Study, used in Study 3. The data can be downloaded here https://en.rigsarkivet.dk/guide/the-danish-national-election-study/
(8) MPDataset_MPDS2024a_stata14: The original MARPOR dataset that is used for the visualization in Figure 5 and that is the source file for the cmp_positions.dta dataset

The "dofile" subfolder should include the following files:
(1) youthquake-replication.do: This is the main dofile, which replicates all analyses reported in the paper and the supplementary analyses.
(2) cmp-coding.do: This is the dofile that can be used to generate the relevant party position indicators stored in cmp_positions.dta. The dofile starts from the MPDataset_MPDS2024a_stata14 dataset.
(3) ees-ches-coding.do: This is the dofile that can be used to create the ees-votersurvey-2019-coded.dta that is used in Study 2. The dofile codes the EES voter survey data and merges it with CHES information. The dofile clarifies where to download the source datafile before coding.

The "tables and figures" subfolder is empty and will be populated as you run the dofiles.

